/**
 * @description Model Manifest
 *
 * @author Xiongmao
 */

var db = require('../db');

module.exports = db.model('Log', {
    tableName: 'logs',
    hasTimestamps: true,

    user() {
        return this.belongsTo('User', 'creator');
    },
    ticket() {
        return this.belongsTo('Ticket', 'ticket_id');
    }
});
